const app = getApp()
Component({
  properties: {
    active: {
      type: String,
      value: "index"
    }
  },

  data: {
    navList: app.data.navList
  },

  lifetimes: {
    attached: function () {},
    moved: function () {},
    detached: function () {},
  },

  methods: {
    tabpage: function (e) {
      app.redirectTo(e.currentTarget.dataset.url);
    },
    callphone: function () {
      app.callPhone();
    }
  }
})